import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
// 引入饿了么UI
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

// 引入tailwindcss的css
import "../src/assets/library/tailwindcss/index.css"
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
// import '../src/assets/library/element/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "../src/assets/library/element/css-vars.css"
const app = createApp(App)
// 饿了么UI Icons
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(createPinia()).use(ElementPlus,{
    locale:zhCn,
}).use(router)

app.mount('#app')
